package org.meichao.demo.service.sequence;

import java.util.concurrent.CountDownLatch;

public class CountDownLatchA implements Runnable {

    private CountDownLatch countDownLatchAB;

    public CountDownLatchA(CountDownLatch countDownLatchAB) {
        this.countDownLatchAB = countDownLatchAB;
    }

    @Override
    public void run() {
        System.out.println("a");
        countDownLatchAB.countDown();
    }
}
